<template>
  <div class="mo-share-index">
    <div class="mo-share-index-left"></div>
    <div class="mo-share-index-box" v-for="v,i in mlist" :key="i">
      <div class="box-mask">
        <Rate disabled v-model="mvalue" allow-half></Rate>
        <span>
          東京大飯店
          <small style="color: #f5a623">9.0</small>
        </span>
      </div>
      <div class="box-mes">
        <span>被點擊了100次</span>
      </div>
    </div>
    <div class="mo-share-index-right"></div>
  </div>
</template>
<script>
import { Rate } from "view-design";
import $ from "jquery";
export default {
  name: "moShareIndex",
  data() {
    return {
      mvalue: 4.5,
      mlist:[1,2,3,4,5,6,7]
    };
  },
  methods: {
  },
  components: {
    Rate
  }
};
</script>
<style lang="scss" scoped>
$baseUrl:"../../../../";
.mo-share-index {
  width: 100%;
  height: 240px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .mo-share-index-box {
    position: relative;
    width: 11.5%;
    height: 100%;
    background-color: black;
    background-image: url($baseUrl+"assets/img/djdfd.webp");
    background-size: cover;
    max-width: 160px;
    cursor: pointer;
    overflow: hidden;
    &:hover .box-mes {
      top: 0px;
    }
    &:hover .box-mask {
      opacity: 1;
    }
    .box-mes {
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 30px;
      width: 100%;
      background-color: white;
      top: -30px;
      transition: 0.4s all;
    }
    .box-mask {
      position: absolute;
      display: flex;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background-color: rgba(0, 0, 0, 0.5);
      align-items: center;
      justify-content: flex-end;
      flex-direction: column;
      opacity: 0;
      span {
        color: white;
        font-weight: 600;
        margin-bottom: 10px;
      }
    }
  }
  .mo-share-index-left,
  .mo-share-index-right {
    width: 2.5%;
    height: 100%;
    background-color: black;
  }
}
</style>